<div class="track">
	<% new_or_existing = track.new_record? ? 'new' : 'existing' %>
	<% prefix = "record[#{new_or_existing}_track_attributes][]" %>
	<% fields_for prefix, track do |track_form| -%>
	  <p>
			Track: <%= track_form.text_field :title, :disabled => @disabled %>
			Duration: <%= track_form.text_field :duration, :disabled => @disabled %>
			<%= link_to_function "remove", "$(this).up('.track').remove()" if not @disabled %>
		</p>
	<% end -%>
</div>